<!DOCTYPE html>
<html lang="zh-tw">
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="content-type">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="文件基於 Python 3 撰寫，如果你需要 Python 六小時生態之旅，可參考〈Python Tutorial〉系列（基於 Python 2.7）。">
    <meta property="og:locale" content="zh_TW">
    <meta property="og:title" content="Python Gossip">
    <meta property="og:type" content="article">
    <meta property="og:url" content="http://openhome.cc/Gossip/Python/index.html">
    <meta property="og:image" content="http://openhome.cc/Gossip/images/caterpillar_small.jpg">
    <meta property="og:site_name" content="OPENHOME.CC">
    <meta property="og:description" content="文件基於 Python 3 撰寫，如果你需要 Python 六小時生態之旅，可參考〈Python Tutorial〉系列（基於 Python 2.7）。">
    <title>語言技術：Python Gossip</title>
    <link rel="stylesheet" href="../css/pure-0.6.0/pure-min.css">
    <!--[if lte IE 8]>
        <link rel="stylesheet" href="../css/layouts/side-menu-old-ie.css">    <![endif]-->
    <!--[if gt IE 8]><!-->
    <link rel="stylesheet" href="../css/layouts/side-menu.css">
    <!--<![endif]-->
    <link rel="stylesheet" href="../css/caterpillar.css">
    <script async="" src="../google-code-prettify/run_prettify.js"></script>
  </head>
  <body>
    <div id="layout">
      <!-- Menu toggle --> <a href="#menu" id="menuLink" class="menu-link">
        <!-- Hamburger icon --><span></span> </a>
      <div id="menu">
        <div class="pure-menu"> <a class="pure-menu-heading" href="../index.html">回
            OPENHOME 首頁</a>
          <ul class="pure-menu-list">
            <br>
            <div class="social" style="text-align: center;"><a href="http://twitter.com/caterpillar"><img
                  title="Twitter" alt="Twitter" src="http://openhome.cc/Gossip/images/twitter.png"></a>
              <a href="http://www.facebook.com/openhome.cc"><img title="Facebook"
                  alt="Facebook" src="http://openhome.cc/Gossip/images/facebook.png"></a>
              <a href="https://plus.google.com/+JustinSDK/"><img title="Google+"
                  alt="Google+" src="http://openhome.cc/Gossip/images/google.png"></a></div>
            <br>
            <div id="search box">
              <script>(function() {var cx = 'partner-pub-9750319131714390:3926766884';var gcse = document.createElement('script');gcse.type = 'text/javascript';gcse.async = true;gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//www.google.com/cse/cse.js?cx=' + cx;var s = document.getElementsByTagName('script')[0];s.parentNode.insertBefore(gcse, s);})();</script><gcse:searchbox-only></gcse:searchbox-only></div>
            <br>
            <div class="ad" style="text-align: center;">
              <script async="" src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
              <!-- 2015 新版型 160 x 600 廣告 --> <ins class="adsbygoogle" style="display:inline-block;width:160px;height:600px"
                data-ad-client="ca-pub-9750319131714390" data-ad-slot="3747048883"></ins>
              <script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script></div>
          </ul>
        </div>
      </div>
      <div id="main">
        <div class="header">
          <h1>語言技術：Python Gossip</h1>
        </div>
        <div class="content">
          <p> </p>
          <p>Beautiful is better than ugly.<br>
            Explicit is better than implicit.<br>
            Simple is better than complex.<br>
            Complex is better than complicated.<br>
            ... from The Zen of Python, by Tim Peters</p>
          <p>文件基於 Python 3 撰寫，如果你需要 Python 六小時生態之旅，可參考〈<a href="http://openhome.cc/Gossip/CodeData/PythonTutorial/index.html">Python
              Tutorial</a>〉系列（基於 Python 2.7）。</p>
          <p>紙本書《<a href="http://books.gotop.com.tw/v_ACL047600">Python 3.5 技術手冊</a>》
            已經上市：</p>
          <div style="text-align: center;"><a href="http://books.gotop.com.tw/v_ACL047600"><img
                style="width: 232px; height: 313px;" title="Python 3.5 技術手冊" alt="Python 3.5 技術手冊"
                src="http://www.gotop.com.tw/Waweb2004/WawebImages/BookXL/ACL047600.jpg"></a></div>
          <p><br>
          </p>
          <div class="ad-2" style="text-align: center;">
            <script async="" src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
            <!-- 2015 新版型回應式廣告 --> <ins class="adsbygoogle" style="display:block"
              data-ad-client="ca-pub-9750319131714390" data-ad-slot="7104125683"
              data-ad-format="auto"></ins>
            <script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script> </div>
          <dl>
            <dt>起步走</dt>
          </dl>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 從一些簡單的語法與型態開始，了解 Python
          內建特性，這已經足夠讓你作不少運算了。
          <ul>
            <li>基本環境與互動</li>
          </ul>
          <div style="margin-left: 40px;">指令互動環境可以讓你隨時測試一些小程式，基本輸出入讓你了解如何以程式與使用者
            互動並儲存結果。<br>
          </div>
          <ul>
            <ul>
              <li><a href="InteractiveShell.html">指令互動環境</a></li>
              <li><a href="ModuleABC.html">簡介模組</a></li>
              <li><a href="IOABC.html">基本輸入輸出</a></li>
            </ul>
          </ul>
          <ul>
            <ul>
            </ul>
            <li>內建型態與操作</li>
          </ul>
          <div style="margin-left: 40px;">常用的物件都是語法內建，語法簡潔且功能豐富。<br>
          </div>
          <ul>
            <ul>
              <li><a href="NumericType.html">數值型態</a></li>
              <li><a href="StringType.html">字串型態</a></li>
              <li><a href="StringFormat.html">字串格式化</a><br>
              </li>
              <li><a href="ListType.html">串列</a></li>
              <li><a href="SetType.html">集合</a><br>
              </li>
              <li><a href="DictionaryType.html">字典</a></li>
              <li><a href="TupleType.html">Tuple</a></li>
            </ul>
          </ul>
          <ul>
            <ul>
            </ul>
            <li>變數、運算子與物件</li>
          </ul>
          <div style="margin-left: 40px;">Python 是動態語言，所有資料都是物件。<br>
          </div>
          <ul>
            <ul>
              <li><a href="Variable.html">變數</a><br>
              </li>
              <li><a href="Operator.html">運算子</a></li>
              <li><a href="ObjectInMemory.html">物件與記憶體管理</a></li>
            </ul>
          </ul>
          <ul>
            <ul>
            </ul>
            <li>陳述句</li>
          </ul>
          <div style="margin-left: 40px;">基本的流程語法不多，但可以作的事很多。<br>
          </div>
          <ul>
            <ul>
              <li><a href="IfStatement.html">if 陳述句</a></li>
              <li><a href="ForWhileStatement.html">for 與 while 陳述句</a></li>
              <li><a href="ForComprehension.html">for 包含式（Comprehension）</a></li>
              <li><a href="TryStatement.html">try、raise 陳述句</a><br>
              </li>
            </ul>
          </ul>
          <br>
          <br>
          <dl>
            <dt>函式、類別與模組<br>
            </dt>
          </dl>
          &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; 封裝演算、定義物件行為、組織程式元件。<br>
          <ul>
            <li>函式</li>
          </ul>
          <div style="margin-left: 40px;"><span style="font-family: Courier New,Courier,monospace;">def</span>
            是陳述句，函式是物件。<br>
          </div>
          <ul>
            <ul>
              <li><a href="DefStatement.html">def 陳述句</a></li>
              <li><a href="LambdaExpression.html">lambda 運算式</a><br>
              </li>
              <li><a href="VariableScope.html">變數範圍</a><br>
              </li>
              <li><a href="YieldGenerator.html">yield 產生器</a></li>
            </ul>
          </ul>
          <ul>
            <ul>
            </ul>
            <li>類別</li>
          </ul>
          <div style="margin-left: 40px;">是物件的共同定義，也是個名稱空間。<br>
          </div>
          <ul>
            <ul>
              <li><a href="Class.html">定義類別</a></li>
              <li><a href="StaticClassMethod.html">靜態方法、類別方法</a><br>
              </li>
              <li><a href="PropertyNameSpace.html">特性名稱空間</a></li>
              <li><a href="SpecialMethodNames.html">特殊方法名稱</a></li>
              <li><a href="NewInitDel.html">建構、初始與消滅</a></li>
              <li><a href="Inheritance.html">繼承</a></li>
              <li><a href="AbstractClass.html">抽象類別</a><br>
              </li>
              <li><a href="ObjectEquality.html">物件相等性</a></li>
            </ul>
          </ul>
          <ul>
            <ul>
            </ul>
            <li>模組</li>
          </ul>
          <div style="margin-left: 40px;">是個檔案，也是個功能元件。<br>
          </div>
          <ul>
            <ul>
              <li><a href="ImportModule.html">匯入模組</a></li>
              <li><a href="ImportImportAsFrom.html">import、import as、from import</a><br>
              </li>
              <li><a href="ImportPackage.html">匯入套件</a></li>
              <li><a href="ModuleNameSpace.html">模組名稱空間</a></li>
            </ul>
          </ul>
          <div class="ad-3" style="text-align: center;">
            <script async="" src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
            <!-- 2015 新版型回應式廣告 --> <ins class="adsbygoogle" style="display:block"
              data-ad-client="ca-pub-9750319131714390" data-ad-slot="7104125683"
              data-ad-format="auto"></ins>
            <script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script> </div>
          <dl>
            <dt>進階議題</dt>
          </dl>
          <ul>
          </ul>
          &nbsp;&nbsp;&nbsp; 一些知道會更好的東西。<br>
          <ul>
            <li>例外</li>
          </ul>
          <div style="margin-left: 40px;">凡事有例外，有些是對的，有些是錯的，好好處理就是。<br>
          </div>
          <ul>
            <ul>
              <li><a href="TryRaise.html">再看 try、raise</a></li>
              <li><a href="Assert.html">使用 assert</a><br>
              </li>
              <li><a href="WithAs.html">使用 with as</a></li>
              <li><a href="UserDefinedException.html">自訂例外</a></li>
            </ul>
          </ul>
          <ul>
            <ul>
            </ul>
            <li>特性控制</li>
          </ul>
          <div style="margin-left: 40px;">物件上的特性不受控制嗎？其實你可以的。。XD<br>
          </div>
          <ul>
            <ul>
              <li><a href="Property.html">property() 函式</a></li>
              <li><a href="Descriptor.html">描述器</a></li>
              <li><a href="Slots.html">__slots__</a><br>
              </li>
              <li><a href="AttrAttribute.html">__getattribute__()、__getattr__()、
                  __setattr__()、__delattr__()</a></li>
            </ul>
          </ul>
          <ul>
            <ul>
            </ul>
            <li>修飾器</li>
          </ul>
          <div style="margin-left: 40px;">在不改變其它程式的前題下，增加程式的功能。<br>
          </div>
          <ul>
            <ul>
              <li><a href="FunctionDecorator.html">函式修飾器</a></li>
              <li><a href="ClassDecorator.html">類別修飾器</a></li>
              <li><a href="MethodDecorator.html">方法修飾器</a></li>
            </ul>
          </ul>
          <ul>
            <ul>
            </ul>
            <li>Meta class</li>
          </ul>
          <div style="margin-left: 40px;">在建立 type 實例之前，你可以作一些有的沒的。。XD<br>
          </div>
          <ul>
            <ul>
              <li><a href="TypeClass.html">type 類別</a></li>
              <li><a href="Metaclass.html">定義 meta class</a></li>
              <li><a href="AbstractClassAgain.html">再看抽象類別</a><br>
              </li>
            </ul>
          </ul>
          <br>
          <br>
          <br>
          <dl>
            <dt>參考資料</dt>
          </dl>
          <ul>
            <li><a href="http://docs.python.org/py3k/tutorial/">The Python
                Tutorial</a></li>
            <li><a href="http://diveintopython3.org/">Dive into Python3</a></li>
            <li><a href="http://www.ibm.com/developerworks/linux/library/l-python3-1/index.html">Python
                3 Primer, Part 1: What's new</a></li>
            <li><a href="http://www.ibm.com/developerworks/linux/library/l-python3-2/index.html">Python
                3 Primer, Part 2: Advanced topics</a></li>
            <li><a href="http://www.python.org/dev/peps/pep-0008/">Style Guide
                for Python Code</a><br>
            </li>
          </ul>
          <div class="recommend" style="text-align: center;">
            <hr>
            <script async="" src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
            <!-- 自動大小回應相符內容 --> <ins class="adsbygoogle" style="display:block"
              data-ad-client="ca-pub-9750319131714390" data-ad-slot="4953478487"
              data-ad-format="autorelaxed"></ins>
            <script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script></div> </div>
      </div>
    </div>
    <script src="../js/ui.js"></script>
    <div class="analytics">
      <script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-143766-1', 'auto');
  ga('send', 'pageview');

</script></div>
  </body>
</html>
